chore: camel-jbang - Add SQL query dev-console, TUI tab with inline editing, and MCP tools#24281
Open
davsclaus wants to merge 9 commits into
Open
chore: camel-jbang - Add SQL query dev-console, TUI tab with inline editing, and MCP tools#24281davsclaus wants to merge 9 commits into
davsclaus wants to merge 9 commits into
Conversation
… and MCP tool Adds end-to-end SQL query support: a new sql-query dev-console that executes queries against DataSource beans, a `camel cmd sql` CLI command, a TUI SQL Query tab with query history (reusable InputHistory class), and a tui_execute_sql MCP tool for AI agents. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Add the ability to edit result rows directly in the TUI SQL query tab. Press Enter on a result row to open an edit form, change values, and press F5 to auto-generate and execute an UPDATE statement. Includes single-table detection via JDBC metadata, primary key discovery, PreparedStatement-based updates with proper type coercion, and an MCP tui_update_row tool for AI agents. Also fixes: ResultSet conflict crash (PK lookup moved after row iteration), number keys switching tabs during edit mode, and integer column type handling in updates. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Include current SQL text, datasource name, selected row index, primary keys, and executing flag in the tui_get_table JSON response for the SQL Query tab, so AI agents have full context about the query state. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Contributor
|
🧪 CI tested the following changed modules:
💡 Manual integration tests recommended:
All tested modules (15 modules)
|
Use shared hint() helper in SQL tab footer instead of custom dimmed styles. Reorder insertFKeyHints to put F1-F3 at front and F6 at end so tab-specific F-keys (e.g. F5) appear in numeric order. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Type file:query.sql in the input field and press F5 to load and execute SQL from a file. The file content replaces the input text before execution. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
…eries Move file: resolution from CLI/TUI to LocalCliConnector, consistent with how send message handles file: loading. The CLI and TUI pass file:path as-is and the connector reads the file on the running app. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sql-querydev-console for executing SQL queries and row updates against DataSource beans via JDBCcamel sqlCLI command for querying databases from the terminaltui_execute_sql,tui_update_rowMCP tools for AI agentstui_get_tableMCP response with SQL input state, datasource, selected row, and editability metadataTest plan
sqlexample)SELECT * FROM tabletui_execute_sql,tui_update_row,tui_get_table🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com